import request from '@/utils/request';

// 岗位
// export const followType = params => request({
//     url: '/admin/statistics/followType',
//     method: 'GET',
//     params
// });

// 组织机构列表
export const deptsList = params => request({
    url: '/depts/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 组织添加
export const deptsAdd = params => request({
    url: '/depts/add',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
// 组织删除
export const deptsDel = params => request({
    url: '/depts/del',
    method: 'GET',
    params
});
// 组织修改
export const deptsUpdate = params => request({
    url: '/depts/update',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});

// 组织机构数
export const getDeptTree = params => request({
    url: '/depts/getDeptTree',
    method: 'POST',
    params: params
}).then(res => {
    return res;
});

// 院区科室下拉
export const deptsPull = params => request({
    url: '/depts/pull/list',
    method: 'POST',
    data: params
}).then(res => {
    return res;
});
